//
//  XHTMLParser.h
//  VietNews
//
//  Created by Nguyen .a.Hph on 22/3/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GTMHTTPFetcher.h"
#import "Element.h"
#import "ElementContainer.h"
#import "VietNewsDetailViewController.h"

@interface XHTMLParser : NSObject
+(ElementContainer *) loadElementContainer;
+(GTMHTTPFetcher *)createGTMHTTPFetcherWithUrl:(NSString *)url parentUrl:(NSString *)parentUrl isMobile:(BOOL)isMobile;
+(NSMutableURLRequest *)createNSURLRequest:(NSString *)url isMobile:(BOOL)isMobile;
+(void)getSectionsBySite:(Element *)site tableVC:(UITableViewController *)tableVC;
+(void)getArticlesByUrl:(NSString *)url site:(Element *)site tableVC:(UITableViewController *)tableVC;
+(void)getArticleDetailByWebView:(NSString *)url site:(Element *)site viewController:(UIViewController *)controller;
+(void)getArticleDetailByUrl:(NSString *)url site:(Element *)site viewController:(UIViewController *)controller;
+(void)parseArticleDetailBy:(GDataXMLDocument *)doc url:(NSString *)url site:(Element *)site viewController:(UIViewController *)controller;
@end
